package com.rainsoft.center.isec.stream.library.entity.hbase.impl;

import com.alibaba.fastjson.annotation.JSONField;
import com.rainsoft.center.isec.common.annotation.HTable;
import com.rainsoft.center.isec.stream.library.entity.hbase.BaseLibEntity;

import java.sql.Timestamp;

@HTable(tableName = "realid_loginout", family = "info", topicName = {"realid_loginout"})
public class RealidLoginout extends BaseLibEntity {
	@JSONField(name = "ICCARD_TYPE")
	private String iccardType;

	@JSONField(name = "ORG_NAME")
	private String orgName;

	@JSONField(name = "SEX")
	private String sex;

	@JSONField(name = "DATA_SOURCE")
	private String dataSource;

	@JSONField(name = "BLOOD_TYPE")
	private String bloodType;

	@JSONField(name = "USER_ADDRESS")
	private String userAddress;

	@JSONField(name = "USER_PHONE")
	private String userPhone;

	@JSONField(name = "ID_EXPIRETIME")
	private String idExpiretime;

	@JSONField(name = "LOGOUT_TIME")
	private Timestamp logoutTime;

	@JSONField(name = "COUNTRY")
	private String country;

	@JSONField(name = "FINGERPRINT")
	private String fingerprint;

	@JSONField(name = "ICCARD_NO")
	private String iccardNo;

	@JSONField(name = "MACHINE_CODE")
	private String machineCode;

	@JSONField(name = "USERNAME")
	private String username;

	@JSONField(name = "PEOPLE")
	private String people;

	@JSONField(name = "REMARK")
	private String remark;

	@JSONField(name = "BIRTHDAY")
	private String birthday;

	public String getIccardType() {
		return iccardType;
	}

	public void setIccardType(String iccardType) {
		this.iccardType = iccardType;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getDataSource() {
		return dataSource;
	}

	public void setDataSource(String dataSource) {
		this.dataSource = dataSource;
	}

	public String getBloodType() {
		return bloodType;
	}

	public void setBloodType(String bloodType) {
		this.bloodType = bloodType;
	}

	public String getUserAddress() {
		return userAddress;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getIdExpiretime() {
		return idExpiretime;
	}

	public void setIdExpiretime(String idExpiretime) {
		this.idExpiretime = idExpiretime;
	}

	public Timestamp getLogoutTime() {
		return logoutTime;
	}

	public void setLogoutTime(Timestamp logoutTime) {
		this.logoutTime = logoutTime;
	}


	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getFingerprint() {
		return fingerprint;
	}

	public void setFingerprint(String fingerprint) {
		this.fingerprint = fingerprint;
	}

	public String getIccardNo() {
		return iccardNo;
	}

	public void setIccardNo(String iccardNo) {
		this.iccardNo = iccardNo;
	}

	public String getMachineCode() {
		return machineCode;
	}

	public void setMachineCode(String machineCode) {
		this.machineCode = machineCode;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPeople() {
		return people;
	}

	public void setPeople(String people) {
		this.people = people;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	@Override
	public String getRowKey() {
		return idcode + "_" + idtype + "_" + loginTime.getTime()/1000;
	}
}
